#include "Process.h"

int Process::getId() const
{
	return id;
	
}

int Process::getPriority() const
{
	return priority;
}

int Process::getBurstTime() const
{
	return  bursttime;
}

int Process::getRemainingTime() const
{
	return remainingtime;
}

void Process::runForOneUnit()
{
	if (remainingtime > 0)
	{
		remainingtime--;

	}
}

void Process::decreasePriority()
{
	if (priority > 0) {
		priority--;
	}
}

bool Process::operator<(const Process& other) const
{
	return priority < other.priority;
}
